package com.sichen.common.to.es;

import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * Sku在Es中保存的模型
 * <p>Created with IntelliJ IDEA.
 * <p>Author: 思尘
 * <p>Created time: 2022-09-12 13:46
 * <p>Version: V1.0
 */
@Data
public class SkuEsModel {

    private Long skuId;

    private Long spuId;

    private String skuTitle;

    private BigDecimal skuPrice;

    private String skuImg;

    private Long saleCount;

    private Boolean hasStock;

    private Long hotScore;

    private Long catalogId;

    private String catalogName;

    private Long brandId;

    private String brandName;

    private String brandImg;

    private List<Attrs> attrs;

    @Data
    public static class Attrs{
        // 为了其他类可以访问这个内部类 , 设置为public
        private Long attrId;
        private String attrName;
        private String attrValue;
    }

}
